// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PUR_REJECTED_ORDER
// * CreateDate    : 2012/4/16 23:54:43
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/16 23:54:43
// * LastChanger   : 2012/4/16 23:54:43
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class PurRejectedOrderEntity : EntityBase
    {
        public PurRejectedOrderTable TableSchema
        {
            get
            {
                return PurRejectedOrderTable.Current;
            }
        }

        public PurRejectedOrderEntity()
        {

        }

        public PurRejectedOrderEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.RejectedOrderId = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_ORDER_ID"]));
            this.ArrivedId = Convert.ToString(CommonFunctions.ToObject(dr["ARRIVED_ID"]));
            this.IqcOrderId = Convert.ToString(CommonFunctions.ToObject(dr["IQC_ORDER_ID"]));
            this.RejectedOrderCode = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_ORDER_CODE"]));
            this.RejectedType = Convert.ToInt32(CommonFunctions.ToObject(dr["REJECTED_TYPE"]));
            this.RejectedPerson = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_PERSON"]));
            this.RejectedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["REJECTED_DATE"]));
            this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
            this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
            this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
            this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public PurRejectedOrderEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.RejectedOrderId = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_ORDER_ID"]));
            this.ArrivedId = Convert.ToString(CommonFunctions.ToObject(dr["ARRIVED_ID"]));
            this.IqcOrderId = Convert.ToString(CommonFunctions.ToObject(dr["IQC_ORDER_ID"]));
            this.RejectedOrderCode = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_ORDER_CODE"]));
            this.RejectedType = Convert.ToInt32(CommonFunctions.ToObject(dr["REJECTED_TYPE"]));
            this.RejectedPerson = Convert.ToString(CommonFunctions.ToObject(dr["REJECTED_PERSON"]));
            this.RejectedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["REJECTED_DATE"]));
            this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
            this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
            this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
            this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return PurRejectedOrderTable.Current;
            }
        }

        #region Perporty List
        public string RejectedOrderId
        {
            get { return Convert.ToString(GetData(PurRejectedOrderTable.C_REJECTED_ORDER_ID)); }
            set { SetData(PurRejectedOrderTable.C_REJECTED_ORDER_ID, value); }
        }

        public string ArrivedId
        {
            get { return Convert.ToString(GetData(PurRejectedOrderTable.C_ARRIVED_ID)); }
            set { SetData(PurRejectedOrderTable.C_ARRIVED_ID, value); }
        }

        public string IqcOrderId
        {
            get { return Convert.ToString(GetData(PurRejectedOrderTable.C_IQC_ORDER_ID)); }
            set { SetData(PurRejectedOrderTable.C_IQC_ORDER_ID, value); }
        }

        public string RejectedOrderCode
        {
            get { return Convert.ToString(GetData(PurRejectedOrderTable.C_REJECTED_ORDER_CODE)); }
            set { SetData(PurRejectedOrderTable.C_REJECTED_ORDER_CODE, value); }
        }

        public int RejectedType
        {
            get { return Convert.ToInt32(GetData(PurRejectedOrderTable.C_REJECTED_TYPE)); }
            set { SetData(PurRejectedOrderTable.C_REJECTED_TYPE, value); }
        }

        public string RejectedPerson
        {
            get { return Convert.ToString(GetData(PurRejectedOrderTable.C_REJECTED_PERSON)); }
            set { SetData(PurRejectedOrderTable.C_REJECTED_PERSON, value); }
        }

        public DateTime RejectedDate
        {
            get { return Convert.ToDateTime(GetData(PurRejectedOrderTable.C_REJECTED_DATE)); }
            set { SetData(PurRejectedOrderTable.C_REJECTED_DATE, value); }
        }

        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(PurRejectedOrderTable.C_CREATED_DATE)); }
            set { SetData(PurRejectedOrderTable.C_CREATED_DATE, value); }
        }

        public string CreatedBy
        {
            get { return Convert.ToString(GetData(PurRejectedOrderTable.C_CREATED_BY)); }
            set { SetData(PurRejectedOrderTable.C_CREATED_BY, value); }
        }

        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(PurRejectedOrderTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(PurRejectedOrderTable.C_LAST_MODIFIED_DATE, value); }
        }

        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(PurRejectedOrderTable.C_LAST_MODIFIED_BY)); }
            set { SetData(PurRejectedOrderTable.C_LAST_MODIFIED_BY, value); }
        }

        public string Remark
        {
            get { return Convert.ToString(GetData(PurRejectedOrderTable.C_REMARK)); }
            set { SetData(PurRejectedOrderTable.C_REMARK, value); }
        }

        #endregion
    }


}

